import request from '@/utils/request'
import { encryptionData } from '@/utils/com'
import Qs from 'qs'

/* 产详情示例管理-列表 */
export function getProductCaseList(data) {
  return request({
    url: '/jcdSys/jcdProductDetails/list',
    method: 'get',
    headers: encryptionData(data, '/jcdProductDetails/list'),
    params: data
  })
}

/* 产详情示例管理-详情 */
export function getProductCaseDetail(data) {
  return request({
    url: '/jcdSys/jcdProductDetails/getById',
    method: 'get',
    headers: encryptionData(data, '/jcdProductDetails/getById'),
    params: data
  })
}

/* 产详情示例管理-保存 */
export function saveProductCase(data) {
  return request({
    url: '/jcdSys/jcdProductDetails/save',
    method: 'post',
    headers: encryptionData(data, '/jcdProductDetails/save'),
    data: Qs.stringify(data)
  })
}

/* 产详情示例管理-删除 */
export function deleteProductCase(data) {
  return request({
    url: '/jcdSys/jcdProductDetails/delBySel',
    method: 'DELETE',
    headers: encryptionData(data, '/jcdProductDetails/delBySel'),
    data: Qs.stringify(data)
  })
}
